<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>课程类别更新</title>
</head>
<body>
导航内容：${navCode	 }
<form action="categoryupdate.do" method="post">
<input type="hidden" value="updateSave" name="editModel">
	<table border="1px">
		<tr>
		<th>字段</th>
		<th>内容</th>
		</tr>
		<tr>
			<td>分类ID</td>
			<td><input readonly="readonly" type="text" name="id" id="id" value="${requestScope.category.id } "></td>
		</tr>
		<tr>
			<td>分类名称</td>
			<td><input type="text" name="categoryName" id="categoryName" value="${requestScope.category.categoryName }"></td>
		</tr>
				<tr>
			<td>分类描述</td>
			<td><input type="text" height="50" width="200" name="categoryDesc" id="categoryDesc"  value="${requestScope.category.categoryDesc }"></td>
		</tr>
		<tr>
			<td>上级分类ID</td>
			<td>
			<select id="superiorId"  name="superiorId"   pattern="int" >
        <option value="0">==无上级分类==</option>
        <c:forEach items="${requestScope.categories }" var="category">
          <option value="${category.id }" <c:if test="${requestScope.category.superiorId eq category.id }">selected="selected"</c:if> >${category.categoryName }</option>
          </c:forEach>
        </select>
			
			<input type="text" name="superiorId" id="superiorId"  value="${requestScope.category.superiorId}"></td>
		</tr>
		<tr>
			<td><input type="submit" name="submit " id="submit" value="更新 "></td>
			<td><input type="reset" name="reset " id="reset" value="重置 "></td>
		</tr>
	</table>
</form>
</body>
</html>